<template>
  <div>
    <button @click="start">刷新</button>
    <div class="sudoku" id="sudoku"></div>
  </div>
</template>

<script>
  import mySudoku from "./mysudoku";
  export default {
    name: "Sudoku",
    methods:{
      start(){
        document.getElementById("sudoku").innerHTML=null;
        mySudoku();
      }
    },
    mounted() {
      mySudoku();
    }
  }
</script>

<style scoped>
  .sudoku{
    width: 288px;
    height: 288px;
    margin: 0 auto;
    border: 1px solid black;
    position: relative;
  }
</style>
